package com.wdhcr.service.imp;

import com.wdhcr.entity.Log;
import com.wdhcr.repository.LogRepository;
import com.wdhcr.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogServiceImp implements LogService {
    @Autowired
    private LogRepository logRepository;


    @Override
    public List findAll(){
        return logRepository.findAll();
    }


    @Override
    public void save(Log log){
        logRepository.save(log);
    }
}
